package com.liang.jiekou.controller;



import com.liang.jiekou.entity.CMSNI;
import com.liang.jiekou.service.CMSMCService;
import com.liang.jiekou.service.CMSNIService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "库位控制器")
@RestController
@RequestMapping("/kw")
public class CMSNIController {


    @Resource
    private CMSNIService cmsniService;
    @ApiOperation("根据仓库查询相关信息")
    @GetMapping("/selectCMSNI")
    public CMSNI selectCMSNI(@RequestParam String NI001){
        return cmsniService.select(NI001);
    }

    @ApiOperation("查询全部的库位信息")
    @GetMapping("/selectCMSNI/all")
    public List<CMSNI> selectCMSNIall(){
        return cmsniService.selectall();
    }
}
